<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/view/common/common.jsp" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Hiring-企业登录</title>
		<link rel="stylesheet" href="${ctx }/vendor/bootstrap-3.3.7-dist/css/bootstrap.min.css"/>
	     <style>
			#validateCode {
				display: inline;
				width: 20%;
			}
			.topbar {
				position: absolute;
				right: 100px;
				top: 28px;
			}
			
			.topbar ul li{
				list-style: none;
				float: left;
				padding: 0 5px;
			}
		</style>
	</head>
	<body>
	   <h2 class="text-center">企业登录</h2>
	   <hr>
		
	   <div class="container">
	   	  <form class="form-horizontal" action="<%=request.getContextPath() %>/company_companyLogin.action" method="post" >
			  <div class="form-group">
			    <label for="code" class="col-sm-2 control-label">帐号：</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" name="company.code" id="code"  value="ssyt" placeholder="请输入企业账号" >
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="password" class="col-sm-2 control-label">密码：</label>
			    <div class="col-sm-10">
			      <input type="password" class="form-control" name="company.password" id="password"  value="123456"  placeholder="请输入企业账号">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="validateCode" class="col-sm-2 control-label">验证码：</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" name="validateCode" id="validateCode" placeholder="请输入验证码">
			      <img alt="" src="<%=request.getContextPath() %>/validate-code.jsp" width="90" height="30" title="看不清，点击换一张" onclick="changeValidateCode(this)">
			    </div>
			  </div>
			 <div class="form-group">
			    <div class="col-sm-offset-2 col-sm-10">
			      <button type="submit" class="btn btn-primary btn-block" id="submit">确认</button>
			    </div>
			  </div> 
			   
		   </form>	
	   </div>
	   <script src="<%=request.getContextPath()%>/vendor/jquery.min.js"></script>
	   <script src="<%=request.getContextPath()%>/vendor/layer/layer.js"></script>
	   <script>
	   	  var msg = '${msg}';
	   	  if (msg) {
	   		  layer.msg(msg, {icon: 2})
	   	  }
	   	function changeValidateCode(img) {
	   		  img.src = '<%=request.getContextPath() %>/validate-code.jsp?time=' + new Date().getTime();
	   	  }
	   </script>
	</body>
</html>